﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
	<!-- Resource dictionary entries should be defined here. -->
	<Style x:Key="OptionsListBoxItemStyle" TargetType="ListBoxItem">
        <Setter Property="Margin" Value="0,0,0,1" />
		<Setter Property="Padding" Value="3,3,0,3"/>
		<Setter Property="HorizontalContentAlignment" Value="Left"/>
		<Setter Property="VerticalContentAlignment" Value="Top"/>
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="TabNavigation" Value="Local"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ListBoxItem">
					<Grid Background="{TemplateBinding Background}" Cursor="Hand">
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="CommonStates">
								<vsm:VisualState x:Name="Normal"/>
								<vsm:VisualState x:Name="MouseOver">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="fillColor" 
                                                                       Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="contentPresenter" 
                                                                       Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="SelectionStates">
								<vsm:VisualState x:Name="Unselected"/>
								<vsm:VisualState x:Name="Selected">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="fillColor2" 
                                                                       Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" 
											Storyboard.TargetName="SideTrianglePath" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="FocusStates">
								<vsm:VisualState x:Name="Focused"/>
								<vsm:VisualState x:Name="Unfocused"/>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
                     
                        <Border  x:Name="fillColor" CornerRadius="3,3,3,3" IsHitTestVisible="False" 
                                   Opacity="0" BorderThickness="1,1,1,1" BorderBrush="#FFEED278" >
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <!--
									BorderBrush="#FFC7A948"
									<GradientStop Color="#FFFFDF76" Offset="0.057"/>
                                    <GradientStop Color="#FFFFF3A5" Offset="0.951"/>
                                    <GradientStop Color="#FFFED86B" Offset="0.077"/>-->
									<!-- HOVER -->
                                    <GradientStop Color="#FFFFF6D4" Offset="0"/>
                                    <GradientStop Color="#FFF8F4D1" Offset="0.996"/>
                                    <GradientStop Color="#FFF8DF6F" Offset="0.768"/>
                                    <GradientStop Color="#FFF6CE54" Offset="0.333"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            
                            <!--<Border.Effect>
                                <DropShadowEffect BlurRadius="1" Color="#7F000000" Direction="-165" ShadowDepth="1"/>
                            </Border.Effect>-->
                            
                        </Border>
                        <Border x:Name="fillColor2"  CornerRadius="3,3,3,3" IsHitTestVisible="False" 
                                   Opacity="0" BorderBrush="#FFB0A85F" BorderThickness="1,1,1,1" Width="Auto" Height="Auto">
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <!--
									BorderBrush="#FFE4924F"
									<GradientStop Color="#FFFFD3AA"/>
                                    <GradientStop Color="#FFF8D168" Offset="1"/>
                                    <GradientStop Color="#FFF29B59" Offset="0.341"/>
                                    <GradientStop Color="#FFDC8443" Offset="0.366"/>
                                    <GradientStop Color="#FFFDC161" Offset="0.947"/>-->
									<!-- SELECTED -->
                                    <GradientStop Color="#FFFFE479" Offset="0.028"/>
                                    <GradientStop Color="#FFFFF38D" Offset="0.996"/>
                                    <GradientStop Color="#FFFADC55" Offset="0.736"/>
                                    <GradientStop Color="#FFF6CE54" Offset="0.581"/>
                                </LinearGradientBrush>
                            </Border.Background>

                            <!--<Border.Effect>
                                <DropShadowEffect BlurRadius="1" Color="#7F000000" Direction="-165" ShadowDepth="1"/>
                            </Border.Effect>-->

                        </Border>
                        
							
                            <!-- SIDE TRIANGLE -->
                            <Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFB0A85F" HorizontalAlignment="Right" x:Name="SideTrianglePath" 
                                  Margin="0,14.763,-0.5,0" Width="9" Height="11.334" VerticalAlignment="Top" Visibility="Collapsed"
                                  UseLayoutRounding="False" Data="M105.60668,13.132615 L99.708,18.177011 L105.60668,23.310255"/>
								  
                        <ContentPresenter x:Name="contentPresenter"
                                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                                          Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" 
                                          ContentTemplate="{TemplateBinding ContentTemplate}"/>
                        
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>